package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

//    分页
    List<Permission> selectLimit(QueryObject qo);

    //    权限删除
    void deleByex(String expression);

    List selectByRoleId(Long id);

    List<String> selectPermission(Long id);
}